home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
07
/
3
/
DISK0731.ZIP
/
LOCATREF
< prev
next >
Wrap
Text File
|
1985-03-31
|
856b
|
23 lines
LOCATE REFERENCE
LOCATE called without a keyword list
provides "help" to illustrate how it is to be
used. It then initializes by opening
MAP.INX, ENTRY.INX, and KEY.INX.
For each keyword in the command tail it
generates the same keyword code produced by
INDEX and reads in the appropriate file numbers
in KEY.INX as indicated by ENTRY.INX. A bit vector
is constructed representing those files
containing a keyword having the same keyword
code as keywords in the command tail. Second
and subsequent bit vectors are "ANDED" with the
first. The resulting bit vector thus represents
a list of all files containing all the keyword
codes generated by the keyword list.
Once all the bit vector is constructed, it
is scanned. For each "on" bit, MAP.INX is
scanned producing a path name.